package al.jdbc.DAO;

import al.jdbc.dpbridge.MySqlDataSource;

public class Gestion_courrierDAO {
	private MySqlDataSource ds = new MySqlDataSource("jdbc:mysql://localhost/gestion_courriers", "root");
	private ContactDAO contactDao = new ContactDAO(ds);
	private Courrier_arriveDAO courrier_arriveDao = new Courrier_arriveDAO(ds);
	private Courrier_departDAO courrier_departDao = new Courrier_departDAO(ds);
	private Envoyer_versDAO envoyer_versDao = new Envoyer_versDAO(ds);
	private Moy_envDAO moy_envDao = new Moy_envDAO(ds);
	private OrganigrammeDAO organigrammeDao = new OrganigrammeDAO(ds);
	private OrganismeDAO organismeDao = new OrganismeDAO(ds);
	private Piece_jointe_arriveDAO piece_jointe_arriveDao = new Piece_jointe_arriveDAO(ds);
	private Piece_jointe_departDAO piece_jointe_departDao = new Piece_jointe_departDAO(ds);
	private RecevoirDAO recevoirDao = new RecevoirDAO(ds);
	private TypeActiviteDAO type_activiteDao = new TypeActiviteDAO(ds);
	private TypeContactDAO type_contactDao = new TypeContactDAO(ds);
	private UtilisateurDAO utilisateurDao = new UtilisateurDAO(ds);
	
	public UtilisateurDAO getUtilisateurDao() {
		return utilisateurDao;
	}

	public void setUtilisateurDao(UtilisateurDAO utilisateurDao) {
		this.utilisateurDao = utilisateurDao;
	}



	private static Gestion_courrierDAO instance = new Gestion_courrierDAO();
	private Gestion_courrierDAO(){
		
	}
	
	public static Gestion_courrierDAO getInstance(){
		return instance;
	}
	
	public ContactDAO getContactDao() {
		return contactDao;
	}



	public Courrier_arriveDAO getCourrier_arriveDao() {
		return courrier_arriveDao;
	}



	public Courrier_departDAO getCourrier_departDao() {
		return courrier_departDao;
	}



	public Envoyer_versDAO getEnvoyer_versDao() {
		return envoyer_versDao;
	}



	public Moy_envDAO getMoy_envDao() {
		return moy_envDao;
	}



	public OrganigrammeDAO getOrganigrammeDao() {
		return organigrammeDao;
	}



	public OrganismeDAO getOrganismeDao() {
		return organismeDao;
	}



	public Piece_jointe_arriveDAO getPiece_jointe_arriveDao() {
		return piece_jointe_arriveDao;
	}



	public Piece_jointe_departDAO getPiece_jointe_departDao() {
		return piece_jointe_departDao;
	}



	public RecevoirDAO getRecevoirDao() {
		return recevoirDao;
	}



	public TypeActiviteDAO getType_activiteDao() {
		return type_activiteDao;
	}



	public TypeContactDAO getType_contactDao() {
		return type_contactDao;
	}


}
